#ifndef FIELD_H
#define FIELD_H

#include <QGraphicsScene>
#include <QVector>
#include "pit.h"
#include "ball.h"

class Pit;
class Ball;

class Field : public QGraphicsScene
{
public:
    explicit Field();

    int width() const;
    Pit* getPitByIndex(int row, int col);
    
signals:
    
public slots:

private:
    QVector<Pit*>  pits;
    QVector<Ball*> balls;
    static const int placeNumber = 9;
    static const int placeStep = 35;
    static const int placeDiam = 30;
    static const int fieldWidth = placeStep*(placeNumber + 1) + placeDiam*placeNumber;


};

#endif // FIELD_H
